﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hi_Baidu.Packet;

namespace Hi_Baidu.Plugin
{
    /// <summary>
    ///     网络插件元接口
    /// </summary>
    public interface INetworkPlugin
    {
        /// <summary>
        ///     得到协议解析器
        /// </summary>
        /// <returns>返回协议解析器</returns>
        IParser GetParser();
        /// <summary>
        ///     得到网络协议
        /// </summary>
        /// <returns>返回网络协议</returns>
        Protocol.NetworkProtocol GetNetworkProtocol();
        /// <summary>
        ///     得到包处理器
        /// </summary>
        /// <returns>返回包处理器</returns>
        IPacketListener GetPacketListener();
    }
}
